<?php if($this->Bayon->isLogging()){?>
<ul id="top_menu" class="top_menu">
    <li><?php echo $this->Html->link(__('Home', true), '/') ?></li>
    <li><?php echo $this->Html->link(__('Profile', true),  '/'.$this->Bayon->username()) ?></li>
    <li><?php echo $this->Html->link(__('Account', true), array('controller' => 'account', 'action' =>'index')) ?></li>
    <li><?php echo $this->Html->link(__('Helps', true), array('controller' => 'docs', 'action' => 'help')) ?></li>
    <li><?php echo $this->Html->link(__('Logout', true), '/logout') ?></li>
</ul>
<?php
} else {
   echo $this->Html->div('signup-button', $this->Html->link(__("Create new account", true), '/signup', array('class' => 'button')).$this->Html->link(__("Login", true), '/login', array('class' => 'button')));
}
?>